package 第二周;

import java.util.Scanner;

public class 成绩 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入java的考试成绩");
        double JavaScare=sc.nextDouble();
        System.out.println("请输入c的考试成绩");
        double cScare=sc.nextDouble();
        System.out.println("请输入database的考试成绩");
        double databaseScare=sc.nextDouble();
        System.out.println("Java和c的分数差为"+(JavaScare-cScare));
        System.out.println("三门课程的平均分"+(JavaScare+cScare+databaseScare)/3);
    }
}

